package com.fishing.util.personal;

import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;


public class DownloadResource {

	public static String url(String path) throws Exception {
		URL url= new URL(path);
        URLConnection open = url.openConnection();
        InputStream input = open.getInputStream();
        //这里转换为String，带上包名，怕你们引错包
        String result = org.apache.commons.io.IOUtils.toString(input,"utf-8");
        input.close();
		return result;
	}
}
